//package com.jiu.zq.创建型模式.静态工厂;
//
//import com.jiu.zq.创建型模式.工厂方法模式.FactoryMethed;
//
///**
// * @author Jiu
// * @description：TODO
// * @date 2020/11/25   12:05
// **/
//public class Demo2 {
//    public static void main(String[] args) {
//        FactoryMethed.IFactory factory = new FactoryMethed.UndergraduateFactory();
//        FactoryMethed.LeiFeng student = factory.CreateLeiFeng();
//
//        student.Sweep();
//        student.Wash();
//        student.BuyRice();
//        System.out.println("\n --------------------------");
//
//        FactoryMethed.IFactory factory2 = new FactoryMethed.VolunteerFactory();
//        FactoryMethed.LeiFeng volunteer = factory2.CreateLeiFeng();
//
//        volunteer.Sweep();
//        volunteer.Wash();
//        volunteer.BuyRice();
//    }
//}
